<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/fn"%>

<%-- Displays a rounded div (for IE6 - 8 only):
  - userAgent : The user agent containing browser information.
  - content : The div content
 --%>


<%-- browser info --%>
<c:set var="userAgent" value="${param.userAgent}" />
<c:set var="isMsie6" value="${fn:indexOf(userAgent, 'MSIE 6') != -1}" />
<c:set var="isMsie7" value="${fn:indexOf(userAgent, 'MSIE 7') != -1}" />
<c:set var="isMsie8" value="${fn:indexOf(userAgent, 'MSIE 8') != -1}" />

<c:choose>

	<c:when test="${isMsie6 || isMsie7 ||isMsie8}">
		<div class="rounded-box"><!-- Corners -->
		<div class="top-left-corner">
		<div class="top-left-inside">&bull;</div>
		</div>
		<div class="bottom-left-corner">
		<div class="bottom-left-inside">&bull;</div>
		</div>
		<div class="top-right-corner">
		<div class="top-right-inside">&bull;</div>
		</div>
		<div class="bottom-right-corner">
		<div class="bottom-right-inside">&bull;</div>
		</div>
		<!-- Content -->
		<div class="box-contents">${param.content}</div>
		<!-- end div.box-contents --></div>
		<!-- end div.rounded-box -->
	</c:when>

	<c:otherwise>
		${param.content}
	</c:otherwise>
</c:choose>
